﻿using System;
using System.Web.Mvc;

namespace MiniSched.Web.Controllers {

    public abstract class MiniSchedController : Controller {

        internal MiniSchedController() { }
    }

    public abstract class MiniSchedController<TApi> : MiniSchedController where TApi : class, IDisposable, new() {

        internal TApi Api {
            get { return _Api ?? (_Api = new TApi()); }
            set { _Api = value; }
        }
        private TApi _Api;

        internal MiniSchedController() { }
    }
}